#include <iostream>
using namespace std;
typedef long long LL;
#define endl '\n'
void solve() 
{
    int a, b, c, d; cin >> a >> b >> c >> d;
    int n = min(a, c), m = min(b, d);
    if(n >= m) cout << "Gellyfish" << endl;
    else cout << "Flower" << endl;
}

int main()
{
    ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    int T;
	cin >> T;
	while(T--)
	{
        solve();
	}
	return 0;
}